<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>卡片居中案例</title>
    <style>
        body {
            background-color: #F5F5F5;
        }

        .box_div {
            width: 234px;
            height: 300px;
            background-color: #FFFFFF;
            text-align: center;
        }

        img {
            width: 160px;
            height: 200px;
        }

        #font_1 {
        font-size:14px ;
        color:black ;
        }

        #font_2 {
        font-size:12px ;
        color:#DBD0CC ;
        }

        #font_3 {
        font-size:14px ;
        color:#FFA500 ;
        }
        p{
        line-height: 10px;
        }
    </style>
</head>

<body>
    <div class="box_div">
        <img src="./img/car.jpg" alt="">
        <p id="font_1">九号平衡车</p>
        <p id="font_2">成年人的玩具</p>
        <p id="font_3">1999元</p>
    </div>
</body>

</html>